#pragma once
#include "SCoreStd.h"

struct Plane
{
	float a,b,c,d;
};

class SFrustum
{
public:
	Plane	m_Plane[6];
	D3DXPLANE	m_PlaneDX[6];
	D3DXVECTOR3	m_Vertex[8];
	D3DXMATRIX	m_matWorld;

public:
	bool	IsInVertex( D3DXVECTOR3 vVertex );
	void	SetMatrix(D3DXMATRIX matView,D3DXMATRIX matProj);
	bool	Frame();
	void	Render();
public:
	SFrustum(void);
	~SFrustum(void);
};
